<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>添加主板</title>
		<#include "/WEB-INF/ftl/supplier/include.ftl" />
		<link type="text/css" rel="stylesheet" href="${base}/css/supplier/add.css" />
		<script type="text/javascript" src="${base}/js/supplier/add_mainBoard.js"></script>
	</head>
	<body>
		<div class="header">
			<div class="logo"> <a href="javascript:void(0);">首页</a> </div>
			<div class="tab">
				<a href="${base}/supplier/index.do">供货商</a>
				<a href="${base}/supplier/mainBoardList.do" class="selected">硬件产品</a>
				<a href="javascript:void(0);" class="last">硬件订单</a>
			</div>
			<p>
				<a href="javascript:void(0);">后台首页</a>
				<a target="_blank" href="/">商城首页</a>
				<a href="${base}/supplier/logout.do">退出管理</a>
			</p>
		</div>
		<div class="header-bar">
			<span>${Session.supplier.name}，您好！</span>
		</div>
		<div class="side">
			<ul>
				<li class="submenu">
                    <span>硬件列表</span>
                    <ul>
                        <li><a href="${base}/supplier/mainBoardList.do">主板列表</a></li>
                    </ul>
                </li>
                <li class="submenu">
                    <span>添加硬件</span>
                    <ul>
                        <li class="selected"><a href="javascript:void(0);">添加主板</a></li>
                        <li><a href="javascript:void(0);">添加CPU</a></li>
                        <li><a href="javascript:void(0);">添加内存</a></li>
                        <li><a href="javascript:void(0);">添加硬盘</a></li>
                        <li><a href="javascript:void(0);">添加显卡</a></li>
                        <li><a href="javascript:void(0);">添加机箱</a></li>
                        <li><a href="javascript:void(0);">添加电源</a></li>
                        <li><a href="javascript:void(0);">添加散热器</a></li>
                        <li><a href="javascript:void(0);">添加光驱</a></li>
                        <li><a href="javascript:void(0);">添加显示器</a></li>
                        <li><a href="javascript:void(0);">添加音箱</a></li>
                        <li><a href="javascript:void(0);">添加声卡</a></li>
                        <li><a href="javascript:void(0);">添加网卡</a></li>
                    </ul>
                </li>
			</ul>
		</div>
		<div class="main">
			<div class="navigation">
				硬件产品&nbsp;&gt;
				添加硬件&nbsp;&gt;
				添加主板
			</div>
			<div class="content">
				<form onsubmit="return false;">
					<table>
						<tr>
							<th>主板型号：</th>
							<td>
								<input type="text" name="主板型号" id="model" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>主板品牌：</th>
							<td>
								<select name="主板品牌" id="brand">
									<#list parameterMap["主板品牌"] as brand>
									<option value="${brand}">${brand}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>芯片组：</th>
							<td>
								<select name="芯片组" id="chipset">
									<#list parameterMap["芯片组"] as chipset>
									<option value="${chipset}">${chipset}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>CPU生产厂商：</th>
							<td>
								<select name="CPU生产厂商" id="cpuManufacturer">
									<#list parameterMap["CPU生产厂商"] as cpuManufacturer>
									<option value="${cpuManufacturer}">${cpuManufacturer}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>CPU系列：</th>
							<td>
								<#list parameterMap["CPU系列"] as cpuSeries>
								<span class="checkbox_span">
									<input type="checkbox" value="${cpuSeries}" name="CPU系列" id="cpuSeries${cpuSeries_index}" class="checkbox" />
									<label for="cpuSeries${cpuSeries_index}">${cpuSeries}</label>
								</span>
								</#list>
							</td>
						</tr>
						<tr>
							<th>CPU插槽：</th>
							<td>
								<select name="CPU插槽" id="cpuSlot">
									<#list parameterMap["CPU插槽"] as cpuSlot>
									<option value="${cpuSlot}">${cpuSlot}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>最大支持内存：</th>
							<td>
								<select name="最大支持内存" id="maxMemoryCapacity">
									<#list parameterMap["最大支持内存"] as maxMemoryCapacity>
									<option value="${maxMemoryCapacity}">${maxMemoryCapacity}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>适用内存类型：</th>
							<td>
								<select name="适用内存类型" id="memoryType">
									<#list parameterMap["适用内存类型"] as memoryType>
									<option value="${memoryType}">${memoryType}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>支持内存频率：</th>
							<td>
								<#list parameterMap["支持内存频率"] as memoryFrequency>
								<span class="checkbox_span">
									<input type="checkbox" value="${memoryFrequency}" name="支持内存频率" id="memoryFrequency${memoryFrequency_index}" class="checkbox" />
									<label for="memoryFrequency${memoryFrequency_index}">${memoryFrequency}</label>
								</span>
								</#list>
							</td>
						</tr>
						<tr>
							<th>支持通道：</th>
							<td>
								<select name="支持通道" id="memoryChannel">
									<#list parameterMap["支持通道"] as memoryChannel>
									<option value="${memoryChannel}">${memoryChannel}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>内存插槽：</th>
							<td>
								<select name="内存插槽" id="memorySlot">
									<#list parameterMap["内存插槽"] as memorySlot>
									<option value="${memorySlot}">${memorySlot}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>内存插槽数目：</th>
							<td>
								<select name="内存插槽数目" id="memorySlotNum">
									<option value="1">1</option>
									<option value="2">2</option>
									<option value="3">3</option>
									<option value="4">4</option>
									<option value="5">5</option>
									<option value="6">6</option>
									<option value="7">7</option>
									<option value="8">8</option>
								</select>
							</td>
						</tr>
						<tr>
							<th>板载声卡：</th>
							<td>
								<input type="text" name="板载声卡" id="soundCard" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>板载网卡：</th>
							<td>
								<input type="text" name="板载网卡" id="networkCard" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>磁盘阵列：</th>
							<td>
								<input type="text" name="磁盘阵列" id="raid" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>扩展插槽：</th>
							<td>
								<#list parameterMap["扩展插槽"] as expansionSlot>
								<span class="checkbox_span">
									<input type="checkbox" value="${expansionSlot}" name="扩展插槽" id="expansionSlot${expansionSlot_index}" class="checkbox" />
									<label for="expansionSlot${expansionSlot_index}">${expansionSlot}</label>
									<select disabled="disabled" id="expansionSlot${expansionSlot_index}Num">
										<option value="1">1</option>
										<option value="2">2</option>
										<option value="3">3</option>
										<option value="4">4</option>
										<option value="5">5</option>
										<option value="6">6</option>
										<option value="7">7</option>
										<option value="8">8</option>
										<option value="9">9</option>
										<option value="10">10</option>
									</select>
								</span>
								</#list>
							</td>
						</tr>
						<tr>
							<th>I/O接口：</th>
							<td>
								<#list parameterMap["IO接口"] as ioInterface>
								<span class="checkbox_span">
									<input type="checkbox" value="${ioInterface}" name="IO接口" id="ioInterface${ioInterface_index}" class="checkbox" />
									<label for="ioInterface${ioInterface_index}">${ioInterface}</label>
									<select disabled="disabled" id="ioInterface${ioInterface_index}Num">
										<option value="1">1</option>
										<option value="2">2</option>
										<option value="3">3</option>
										<option value="4">4</option>
										<option value="5">5</option>
										<option value="6">6</option>
										<option value="7">7</option>
										<option value="8">8</option>
										<option value="9">9</option>
										<option value="10">10</option>
									</select>
								</span>
								</#list>
							</td>
						</tr>
						<tr>
							<th>主板板型：</th>
							<td>
								<select name="主板板型" id="type">
									<#list parameterMap["主板板型"] as type>
									<option value="${type}">${type}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>主板尺寸：</th>
							<td>
								<input type="text" name="主板尺寸" id="size" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>电源接口：</th>
							<td>
								<select name="电源接口" id="powerInterface">
									<#list parameterMap["电源接口"] as powerInterface>
									<option value="${powerInterface}">${powerInterface}</option>
									</#list>
								</select>
							</td>
						</tr>
						<tr>
							<th>供电模式：</th>
							<td>
								<input type="text" name="供电模式" id="powerMode" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>特色功能：</th>
							<td>
								<textarea rows="3" cols="40" name="特色功能" id="feature"></textarea>
							</td>
						</tr>
						<tr>
							<th>附件：</th>
							<td>
								<textarea rows="5" cols="40" name="附件" id="attachment"></textarea>
							</td>
						</tr>
						<tr>
							<th>客服电话：</th>
							<td>
								<input type="text" name="客服电话" id="qaPhone" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>质保时间：</th>
							<td>
								<input type="text" name="质保时间" id="qaTime" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>质保政策：</th>
							<td>
								<input type="text" name="质保政策" id="qaPolicy" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>质保具体内容：</th>
							<td>
								<textarea rows="5" cols="40" name="质保具体内容" id="qaDetail"></textarea>
							</td>
						</tr>
						<tr>
							<th>产品价格：</th>
							<td>
								<input type="text" name="入库价格" id="price" class="input-text" />
							</td>
						</tr>
						<tr>
							<th>产品图片：</th>
							<td>
								<input type="file" name="图片路径" id="picture" class="input-file" />
							</td>
						</tr>
						<tr>
							<th></th>
							<td>
								<input type="submit" value="保存" class="input-button" onclick="add();" />
								<input type="reset" value="清空" class="input-button" />
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</body>
</html>
